﻿<meta charset="UTF-8">
<title>僵尸</title>
<link rel="icon" href="1 (1).png">
<style>
body{
  background-image: url(background.jpg);
  background-repeat:no-repeat;
  background-attachment:fixed;
  background-size:cover}
</style>
<img src="1 (1).png" id="nb" style="position:absolute;right:0px;top:40%;" />
<script>
setInterval(f,40);
var x =0;
var t= 1;
function f(){
  if(x<=document.body.clientWidth-1.5*(nb.width)){
    x+=2;
    nb.src="1 ("+t+").png"
    nb.style.right = x;
  if(t<31){
  t++;}else{t=1;}}else{
    alert("僵尸吃掉了你的脑子!");
    x=0}
}
</script>